<script>
import KtTable from "/src/components/node-kantboot/components/KtTable/KtTable.vue";
import columns from "./config/columns.config.js"
import MajorDialog from "/src/views/manage/api/major/majorCategory/components/MajorDialog.vue";

export default {
  components: {MajorDialog, KtTable},
  data() {
    return {
      columns
    }
  },
  mounted() {
  },
  methods: {
    openMajor(row) {
      this.$refs.majorDialog.open(row);
    }
  }
}
</script>

<template>
  <kt-table
      :columns="columns"
      requestUri="/api-edu/admin/category"
      ref="ktTable">

    <template #operationAppend="{row}">
      <el-button
          @click="openMajor(row)">二级专业
      </el-button>
    </template>
  </kt-table>
  <major-dialog ref="majorDialog"></major-dialog>
</template>

<style scoped>

</style>